<?php

namespace App\Models;

use App\User;
use Illuminate\Database\Eloquent\Model;

class CourseStudentModel extends Model
{
    protected $table = 'course_student';
    protected $guarded = [];
    public $timestamps = false;

    public function course() {
        return $this->belongsTo(CourseArrangeModel::class, 'course_arrange_id', 'id');
    }

    public function users() {
        return $this->hasOne(User::class, 'id', 'user_id');
    }
}